package com.cn.mapper.dao.db5.PartsManagement;

import com.cn.bean.pojo.lbj.ComponentCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ComponentCategoryDao {
    List<ComponentCategory> selectComponentMechanicalUsageCategory(ComponentCategory category);
    List<ComponentCategory> selectAll();
    Integer getComponentMechanicalUsageCategoryAutoid();
    int addComponentMechanicalUsageCategory(@Param("ID") int ID, @Param("code") String code, @Param("name") String name, @Param("description") String description, @Param("status") int status);
    int delComponentMechanicalUsageCategory(@Param("id") int id);
    int delComponentMechanicalUsageCategoryStatus(@Param("id") int id);
    int updateComponentMechanicalUsageCategory(@Param("id") int id, @Param("code") String code, @Param("name") String name, @Param("description") String description, @Param("status") int status);
    List<ComponentCategory> selectAllAuyo1();
    List<ComponentCategory> selectComponentMechanicalUsageCategoryId(@Param("id") int id);
}
